package com.pimee.job.util;

import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;

import com.pimee.job.AbstractQuartzJob;
import com.pimee.model.SysJob;

/**
 * 定时任务处理（禁止并发执行）
 * 
 * @author Bruce Shaw 2020年2月5日 下午9:21:34
 *
 */
@DisallowConcurrentExecution
public class QuartzDisallowConcurrentExecution extends AbstractQuartzJob {
	@Override
	protected void doExecute(JobExecutionContext context, SysJob job) throws Exception {
		JobInvokeUtil.invokeMethod(job);
	}
}
